import { Field } from '@nestjs/graphql';
import { SUCCESS } from '@/common/constants/code';

export const getRandomCode = () => {
  const code = [];
  for(let i = 0; i < 4; i++) {
    code.push(Math.floor(Math.random() * 9));
  }
  return code.join('');
}
